﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Slick
{
    public partial class frmLayerDepth : Form
    {
        public frmLayerDepth()
        {
            InitializeComponent();
        }

        public DialogResult ShowAddDialog()
        {
            return this.ShowDialog("Add New Layer", "Please enter the depth you want the\n layer to be created at:", 0);
        }
        public DialogResult ShowModifyDialog(decimal val)
        {
            return this.ShowDialog("Modify Layer Depth", "Please enter the new depth you want\n the layer to be at:", val);
        }
        public DialogResult ShowDialog(string title, string message, decimal defaultDepth)
        {
            this.Text = title;
            this.lblCurrentDepth.Text = message;
            this.updDepth.Value = defaultDepth;
            return base.ShowDialog();
        }
    }
}
